﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class Animal
    {
        private int leg;
        public int Leg { get => leg; set => leg = value; }

        public void Eat() 
        {
            Console.WriteLine("我会吃饭饭");
        }
        public void Sleep()
        {
            Console.WriteLine("我会睡觉觉");
        }
        public void Walk()
        {
            Console.WriteLine("我会散散步");
        }
        public virtual void Cry()
        {
            Console.WriteLine("我会大叫 ");
        }

    }
}
